Formal Languages.html


* created: 2026-03-24T18:04
* modified: 2026-04-19T23:52

title

Formal language

description

A set of words over an alphabet.

related notes

Formal language

This is a set of words over an alphabet, i.e. L \subseteq \sum^*.

Alphabet

A finite, non-empty set of characters which is commonly denoted as: \sum.

Examples of such Alphabets are:

\sum^n is a shorthand that gets defined as \{ w | \text{where w is a word over} \sum, w = n, n \in \mathbb{N}_0 \}. With \sum := \{a,b,c\} the following holds:

Furthermore there are two common notations that include/exclude the neutral element explicitly: \sum^* = \sum^+ \cap \{e\}

Word

A finite sequence of characters from an Alphabet.

e describes the sequence without characters. See neutral element. w^R is the word in reverse order.

Examples of such Words are: